package com.example.demo.service.impl;

import com.example.demo.mapper.ClassesMapper;
import com.example.demo.model.Classes;
import com.example.demo.service.ClassesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service("ClassesService")
public class ClassesServiceImpl implements ClassesService{
    @Autowired
    private ClassesMapper classesMapper;

    @Override
    public int deleteByPrimaryKey(Integer sId) {
        return classesMapper.deleteByPrimaryKey(sId);
    }


    @Override
    public int insert(Classes record) {
        return classesMapper.insert(record);
    }

    @Override
    public Classes selectByPrimaryKey(Integer sId) {
        return classesMapper.selectByPrimaryKey(sId);
    }


    @Override
    public int updateByPrimaryKey(Classes record) {
        return classesMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Classes> selectAll() {
        return classesMapper.getAll();
    }
    @Override
    public List<Classes> selectByParamMap(HashMap<String,Object> hashMap) {
        return classesMapper.selectByParamMap( hashMap);
    }
}
